package com.base.delegate;

/**
 * Created by xingyuchao on 2017-06-24.
 * 定义具体的委托者(类似项目经理，主要分配任务，由具体的受托类来执行任务)，
 */
public class Dispacher implements IExecutor{

    private IExecutor iExecutor;

    public Dispacher(IExecutor iExecutor) {
        this.iExecutor = iExecutor;
    }

    @Override
    public void doing() {
        iExecutor.doing();
    }
}
